package com.olddriver.crm.mapper;

import org.apache.ibatis.annotations.Param;
import com.olddriver.crm.domain.Permission;

import java.util.List;


public interface PermissionMapper {
    int insert(@Param("permission") Permission permission);

    List<Permission> find();

    List<String> findResourses();

    List<String> findResourseByEmp(Long id);

    List<Permission> findPermissionByRoleId(Long id);

    Permission findPermissionByMenu(Long id);
}
